home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / AdobeExamples / NX_LineDraw / ReadMe < prev   
Text File  |  1995-06-12  |  1KB  |  30 lines

  1.  
  2. README file for the LineDraw application.
  3.  
  4. The LineDraw application is a very simple application that looks as single
  5. operator calls and wraps. The application provides a window whereas
  6. a set number of lines can be randomly drawn (the locations for the start
  7. and end of the lines are chosen at random). This application times several
  8. variations in drawing with single operator calls and wraps. The variations
  9. include binding the operators and performing the drawing within a PostScript
  10. loop.
  11.  
  12. This application shows two significant findings. The first is that combining frequently
  13. invoked sets of PostScript operators into a single wrap can have a 10-20% 
  14. improvement over calling the single operator procedure for each operator. The
  15. second finding is that large performance gain can be obtained by delaying
  16. stroking similar lines until it is necessary. If a group of lines have the same line
  17. attributes (color, width, linejoin, etc.) then it pays to delay the stroking until a
  18. limit is reached (1500 points in a path), line attributes change or no more lines
  19. need to be drawn.
  20.  
  21.  
  22. Below lies an annotated list of the files used in the application. 
  23.  
  24. DrawView        - A subclass of View. Holds arrays containing the point 
  25.                     locations of the lines and the line attributes (color,
  26.                     width, etc). Draws the lines in the window using
  27.                     single operator calls or wraps.
  28.  
  29. DrawViewWraps.psw    - Wraps for clearing the view and drawing the lines.
  30.